package com.daqian.chance.core.exception;

import lombok.Data;

/**
 * 服务处理异常
 * @author daqian
 * @date 2019/7/28 16:31
 */
@Data
public class ServiceException extends RuntimeException {
    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public static ServiceException msg(String msg) {
        return new ServiceException(msg);
    }
}
